package com.ruoyi.bantong.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 文章对象 bt_article
 * 
 * @author laohei
 * @date 2021-01-24
 */
public class BtArticle extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 文章ID */
    private Integer artId;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 封面 */
    private String cover;

    /** 作者 */
    private String anchor;

    /** 文章内容 */
    @Excel(name = "文章内容")
    private String context;

    /** 状态 0不发布 1发布 */
    @Excel(name = "状态 0不发布 1发布")
    private Integer status;

    /** 阅读数 */
    private Integer view;

    public void setArtId(Integer artId) 
    {
        this.artId = artId;
    }

    public Integer getArtId() 
    {
        return artId;
    }
    public void setContext(String context) 
    {
        this.context = context;
    }

    public String getContext() 
    {
        return context;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getView() {
        return view;
    }

    public void setView(Integer view) {
        this.view = view;
    }

    public String getCover() {
        return cover;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    public String getAnchor() {
        return anchor;
    }

    public void setAnchor(String anchor) {
        this.anchor = anchor;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("artId", getArtId())
            .append("context", getContext())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
